<!DOCTYPE html>
<html>

<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width,initial-scale=1.0,user-scalable=no">
  <title>vue-mall</title>
  <link rel="stylesheet" href="https://at.alicdn.com/t/font_1109003_az34gjadu3h.css">
</head>

<body>
  <div id="app"></div>
  <!-- built files will be auto injected -->
  <script>
    let htmlWidth = document.documentElement.clientWidth || document.body.clientWidth;
    let htmlDOM = document.querySelector("html");
    // 防止在大屏设备下打开页面，字体、布局过大
    if (htmlWidth > 750) {
      htmlWidth = 750;
    }
    htmlDOM.style.fontSize = htmlWidth / 20 + 'px';
  </script>
</body>

</html>